<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include 'inc/head.php'; ?>
</head>

<body>
  <?php include 'inc/header.php'; ?>

  <div class="container">

    <?php
    echo form_create(
      ['action' => M('admin', 'chip', 'edit_action', $this->id)],
      [
        ['type' => 'text', 'label' => '名称', 'key' => 'c_name', 'required' => 'required'],
        ['type' => 'text', 'label' => '调用代码', 'key' => 'c_code', 'required' =>
        'required'],
        ['type' => 'editor', 'label' => '内容', 'key' => 'c_content'],
        ['type' => 'submit', 'label' => '提交', 'key' => 'save']
      ],
      ['碎片编辑'],
      $row
    );
    ?>

  </div>

  <?php include 'inc/footer.php'; ?>

</body>

</html>